package com.jyxd.web.data.patient;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 患者流转信息
 * </p>
 *
 * @author baomidou
 * @since 2022-09-20
 */
@TableName("p_patient_transfer_info")
public class PatientTransferInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 患者id
     */
    private String patientId;

    private String visitId;

    private String visitCode;

    /**
     * 流转信息类型(入院、转床、转科、手术)
     */
    private String type;

    /**
     * 名称（转入科室名称 | 转入床位名称 | 手术名称）
     */
    private String name;

    /**
     * 流转信息发生日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime dataTime;

    /**
     * 0 自动 1 手动
     */
    @JsonIgnore
    private int dataSource;

    @JsonIgnore
    private LocalDateTime createTime;

    @JsonIgnore
    private String userId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPatientId() {
        return patientId;
    }

    public void setPatientId(String patientId) {
        this.patientId = patientId;
    }

    public String getVisitId() {
        return visitId;
    }

    public void setVisitId(String visitId) {
        this.visitId = visitId;
    }

    public String getVisitCode() {
        return visitCode;
    }

    public void setVisitCode(String visitCode) {
        this.visitCode = visitCode;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDateTime getDataTime() {
        return dataTime;
    }

    public void setDataTime(LocalDateTime dataTime) {
        this.dataTime = dataTime;
    }

    public int getDataSource() {
        return dataSource;
    }

    public void setDataSource(int dataSource) {
        this.dataSource = dataSource;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "PatientTransferInfo{" +
        "id = " + id +
        ", patientId = " + patientId +
        ", visitId = " + visitId +
        ", visitCode = " + visitCode +
        ", type = " + type +
        ", name = " + name +
        ", dataTime = " + dataTime +
        "}";
    }
}
